import 'package:flutter/material.dart';
import 'package:flutterroom/pages/home/info/home_room_list.dart';
import 'package:flutterroom/pages/home/widgets/common_image.dart';
import 'package:flutterroom/pages/my/widget/my_button_widget.dart';
import 'package:flutterroom/pages/my/widget/my_header.dart';

class MyTabPage extends StatefulWidget {
  @override
  _MyTabPageState createState() => _MyTabPageState();
}

class _MyTabPageState extends State<MyTabPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        brightness: Brightness.light,
        title: Text("我的"),
        actions: <Widget>[
          IconButton(icon: Icon(Icons.settings,color: Colors.white,size: 25,), onPressed: (){}),
          // Padding(padding: EdgeInsets.all(5))
        ],
      ),
      body: ListView(children: <Widget>[
        MyHeader(),
        MyButtonList(),
        Container(
          padding: EdgeInsets.only(right: 8,left: 8,bottom: 8),
          child: CommonImage("https://tva1.sinaimg.cn/large/006y8mN6ly1g6te62n8f4j30j603vgou.jpg"),
        ),
        Info(showTitle: true,),
        // Text("测试一下")
      ],),
    );
  }
}
